package com.infosystem.demo.entities;

import com.infosystem.demo.models.ResumeDTOI;
import jakarta.persistence.*;

import java.util.UUID;

@Entity
public class Resume {
    @Id
    private String id;
    // private String employeeId;
    private String resumeUrl;

    @OneToOne
    @JoinColumn(name = "id", referencedColumnName = "id")
    private Employee employee;

    public Resume() {
    }

    public Resume(String employeeId, String resumeUrl) {
        this.id = UUID.randomUUID().toString();
        //this.employeeId = employeeId;
        this.resumeUrl = resumeUrl;
    }

    public String getResumeUrl() {
        return resumeUrl;
    }

    public void setResumeUrl(String resumeUrl) {
        this.resumeUrl = resumeUrl;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }
}
